package com.hsgene.order.persistence;

import com.hsgene.order.domain.v1.GeneticTestingExpressDelivery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 基因检测快递Repository
 *
 * @author wangbing
 * @version 1.0, 2018/8/3
 */
@Repository
public interface ExpressDeliveryRepository {

    /**
     * 查询订单有效的快递信息
     *
     * @param orderId 订单id
     * @return 快递信息列表
     */
    List<GeneticTestingExpressDelivery> queryOrderAvailableExpress(@Param("orderId") String orderId);

    /**
     * 保存寄送信息
     *
     * @param delivery 寄送信息
     */
    void save(@Param("delivery") GeneticTestingExpressDelivery delivery);
}
